package main

import (
	"fmt"
	"log"
	"time"

	"hongen.com/go-test/calculate"
	"hongen.com/go-test/channel"
	"hongen.com/go-test/goroutine"
)

func main() {
	fmt.Println(calculate.Plus(1, 2))

	for i := 0; i < 100; i++ {
		go goroutine.GoroutineTest(i)
	}

	log.Println("wait for go...")
	time.Sleep(30 * time.Second)
	channelTest()
}

func channelTest() {

	chanA := make(chan int, 3)
	channel.ChannelTest(100, 200, chanA)

}
